package Demo01_15;

import java.util.Arrays;

/**
 * Created by 14229 on 2020/1/16.
 */
public class Test09 {
    public static void main(String[] args) {

        String[] arrA = {"a","b","c","d","e"};
        String[] arrB = new String[arrA.length];
        int count = 0;
        for (int i = arrA.length-1; i >=0 ; i--) {
            arrB[count++] = arrA[i];
        }
        System.out.println("arrB中的元素为：\n"+ Arrays.toString(arrB).replace("[","").replace("]",""));

    }
}
